package com.wlstock.funi.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

@DatabaseTable
public class StrategyModel extends BaseModel{

    @DatabaseField(id = true, unique = true)
    private String shortName;
    @DatabaseField(unique = true)
    private String fullName;
    @DatabaseField//最高年化
    private float highYearPecentage;
    @DatabaseField//最高年化持仓时间
    private int highYearKeepDays;

    @DatabaseField//最大成功率
    private float maxSuccessPecentage;
    @DatabaseField//最大成功率持有时间
    private int maxSuccessKeepDays;

    @DatabaseField //直接存储的网络连接
    private String appendURL;
    @DatabaseField
    private Date createDate = new Date();
    @DatabaseField//是否需要显示
    private String needShow = "Y";

    @DatabaseField
    private String attr1 ;
    @DatabaseField
    private String attr2 ;
    @DatabaseField
    private String attr3 ;
    @DatabaseField
    private String attr4 ;
    @DatabaseField
    private String attr5 ;
    @DatabaseField
    private String attr6 ;
    @DatabaseField
    private String attr7 ;
    @DatabaseField
    private String attr8 ;
    @DatabaseField
    private String attr9 ;
    @DatabaseField
    private String attr10 ;
    @DatabaseField
    private String attr11 ;
    @DatabaseField
    private String attr12 ;
    @DatabaseField
    private String attr13 ;
    @DatabaseField
    private String attr14 ;



    public StrategyModel() {
    }
    ;


    public StrategyModel(String shortName, String fullName, String appendURL,
                         float highYearPecentage,int highYearKeepDays,
                         float maxSuccessPecentage,int maxSuccessKeepDays) {
        super();
        this.shortName = shortName;
        this.fullName = fullName;
        this.appendURL = appendURL;
        this.highYearPecentage = highYearPecentage;
        this.highYearKeepDays = highYearKeepDays;
        this.maxSuccessPecentage = maxSuccessPecentage;
        this.maxSuccessKeepDays = maxSuccessKeepDays;
    }


    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public float getHighYearPecentage() {
        return highYearPecentage;
    }

    public void setHighYearPecentage(float highYearPecentage) {
        this.highYearPecentage = highYearPecentage;
    }

    public float getMaxSuccessPecentage() {
        return maxSuccessPecentage;
    }

    public void setMaxSuccessPecentage(float maxSuccessPecentage) {
        this.maxSuccessPecentage = maxSuccessPecentage;
    }

    public int getHighYearKeepDays() {
        return highYearKeepDays;
    }

    public void setHighYearKeepDays(int highYearKeepDays) {
        this.highYearKeepDays = highYearKeepDays;
    }

    public String getAppendURL() {
        return appendURL;
    }

    public void setAppendURL(String appendURL) {
        this.appendURL = appendURL;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


    public String getNeedShow() {
        return needShow;
    }

    public void setNeedShow(String needShow) {
        this.needShow = needShow;
    }

    public int getMaxSuccessKeepDays() {
        return maxSuccessKeepDays;
    }

    public void setMaxSuccessKeepDays(int maxSuccessKeepDays) {
        this.maxSuccessKeepDays = maxSuccessKeepDays;
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3;
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4;
    }
}
